<?php
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
$this->headTitle($this->title);
echo $this->doctype();
?>  
<!DOCTYPE html>
<html lang="pt-br">
    <head>
        <link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->urlbase; ?>/public/media/images/favicon.png">
        <?php echo $this->headMeta(); ?>
        <?php echo $this->headTitle(); ?>
        <?php echo $this->headLink() ?>
         <script>
            var URLSITE     = '<?php echo $this->urlbase ?>';
            var URLBASE = '<?php echo $this->urlmodulo ?>';
            var CONTROL = '<?php echo $this->controller; ?>';
            var tipmat = 0;
        </script>
        <?php echo $this->headScript() ?>
    </head>
    <body>
        <div id="sis-content">

            <div id="sis-topo">
                <?php
                // chama view com passagem de parametros
                echo $this->partial('menu.phtml', array('modulo'=>$this->modulo));
                ?>
            </div>

            <div id="sis-corpo">
                <table style="height: 100%" >
                    <tr>
                        <td valign="top" style="height: 100%;background-color: #58585A;" class="td-cml" >
                            <?php $style = ($this->controller > '') ? 'style="display: block"':'';?>
                            <div class="content-menu-lt"  <?php echo $style ?>>
                             <?php echo $this->partial('item_menu.phtml', array('modulo'=>$this->modulo, 'controller'=>$this->controller)); ?>   
                            </div>
                        </td>
                        <td valign="top">
                            <div class="content-mn">
                                <?php echo $this->layout()->content; ?>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>


            <div id="sis-rodape">
                <div id="sis-rodape_dados">
                    <?php echo $this->partial('rodape_emp.phtml', array('urlbase'=>$this->urlbase)); ?>
                </div>
            </div>

        </div>
    </body>
</html>